//
//  ZingToolBar.h
//  iOSTest
//
//  Created by -Xh- on 1/11/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol ZingToolBarDelegate <NSObject>

@optional
-(void)onPressBackButton;
-(void)onPressForwardButton;
-(void)onPressMultiTabButton;
-(void)onPressNewTabButton;
-(void)onPressDoneButton;
-(void)onPressViewFavouriteButton;
-(void)onPressOpenClosedTabButton;
-(void)onPressSearchTextButton;
-(void)onPressShowMenuButton;
-(void)onPressFullScreenButton;
-(void)onPressShareButton;
@end

typedef enum{
    TB_Normal,TB_Tab
}ZingToolBarState;

@class SGPageViewController;

@interface ZingToolBar : UIView
@property (weak,nonatomic) UIButton* backButton;
@property (weak,nonatomic) UIButton* forwardButton;
@property (weak,nonatomic) UIButton* multiTabButton;
@property (weak,nonatomic) UIButton* viewFavouriteButton;
@property (weak,nonatomic) UIButton* searchTextButton;
@property (weak,nonatomic) UIButton* fullScreenButton;
@property (weak,nonatomic) UIButton* shareButton;
@property (weak,nonatomic) UIButton* showMenuButton;
@property (nonatomic) UILabel* pageNumberLB;
@property (weak,nonatomic) id<ZingToolBarDelegate> delegate;
@property (nonatomic) UIImageView* background;
@property (weak, nonatomic) SGPageViewController *browser;





-(void)swapState;
-(void)activate:(BOOL)_value;
-(ZingToolBarState)getCurrentState;
-(void)updateChrome;
-(BOOL)isOnTabState;

@end
